home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2003 December / The Sunday Times - The Month 2003-12.iso / pc / engine / shell / shell.dxr / Internal_8_shell - set up and methods.ls < prev    next >
Encoding:
Text File  |  2003-11-04  |  576 b   |  26 lines

  1. property pStrAssetsPath, pInitialised, pFlashLevel0, pFlashGlobal
  2. global spriteShell
  3.  
  4. on beginSprite me
  5.   visibility = 1
  6.   if not (pInitialised = 1) then
  7.     pFlashLevel0 = spriteShell.getVariable("_level0", 0)
  8.     pFlashGlobal = spriteShell.getVariable("_global", 0)
  9.     pInitialised = 1
  10.   end if
  11. end
  12.  
  13. on setAssetsPath me, str
  14.   pStrAssetsPath = str
  15. end
  16.  
  17. on creditsShow me
  18.   global spriteDialog, spriteOverlay, spriteVideo
  19.   spriteDialog.kill()
  20.   spriteOverlay.kill()
  21.   spriteVideo.kill()
  22.   bespoke_killAll()
  23.   pFlashLevel0.creditsShow()
  24.   spriteShell.buttonsEnabled = 1
  25. end
  26.